package com.zgm.ch06.aop.xml.afterReturning._3_3_2;

import org.aspectj.lang.JoinPoint;

import com.zgm.ch06.aop.common.User;

public class AspectBean {

	/*public void logCall(JoinPoint jp) {
		System.out.println("方面生效了");
		System.out.println(jp);
	}*/
	
	public void auditCall(Object target, Object ret) {
		System.out.println("后直通知执行了");

		if(ret instanceof User) {
			((User) ret).setPassword("***");
		}
	}
}
